home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20010306-20010921 / 000089_news@columbia.edu _Mon Apr 30 10:15:44 2001.msg < prev    next >
Internet Message Format  |  2001-09-20  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA08046
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 30 Apr 2001 10:15:44 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA29104
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 30 Apr 2001 10:06:16 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@columbia.edu (Frank da Cruz)
  10. Subject: Re: FTP delete after put ?
  11. Date: 30 Apr 2001 14:06:15 GMT
  12. Organization: Columbia University
  13. Message-ID: <9cjrgn$sdd$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <Ah6H6.3803$ZH.425948@weber.videotron.net>,
  17. Kevin McBrearty <kevin@atg.ca> wrote:
  18. : I am using a here document to FTP files from a local server to a remote
  19. : machine. I would like the script to delete the files from the local server
  20. : once they have been transferred, but only if the transfer was successful. I
  21. : don't see any way to do this with FTP. Can anyone suggest something ?
  22. The new Kermit FTP client can do this:
  23.  
  24.   http://www.columbia.edu/kermit/ftpclient.html
  25.  
  26. Example:
  27.  
  28.   C-Kermit> ftp xyzcorp.com /user:myname
  29.     Password: xxxxx
  30.  
  31. [ Note: secure authentication methods are also available ]
  32.  
  33.   C-Kermit> rcd somedirectory  ; "rcd" = "remote cd"
  34.   C-Kermit> mput /delete *
  35.   C-Kermit> bye
  36.  
  37. The MPUT /DELETE command sends a file or group of files (text or binary,
  38. it doesn't matter; Kermit switches automatically between text and binary
  39. mode for each file), deleting each source file after, and if and only if,
  40. it was uploaded successfully.  For details see:
  41.  
  42.   http://www.columbia.edu/kermit/ckermit3.html#x3
  43.  
  44. and in particular:
  45.  
  46.   http://www.columbia.edu/kermit/ckermit3.html#x3.5.1
  47.  
  48. - Frank